package com.yq.ylmall.model.product;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yq.ylmall.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author yzk789
 * @since 2024-06-17
 */
@Data
@TableName("banner")
@ApiModel(value = "Banner对象")
public class Banner extends BaseEntity implements Serializable {

    @ApiModelProperty(value = "轮播图描述")
    @TableField("`desc`")
    private String desc;

    @ApiModelProperty(value = "跳转链接")
    private String jumpLink;

    @ApiModelProperty(value = "业务ID（如商品ID，活动ID）")
    private Long businessId;

    @ApiModelProperty(value = "轮播图地址")
    private String imageSrc;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "启用状态：1启用  0禁用")
    @TableField("`status`")
    private Integer status;

}
